package 字符串;

import javafx.scene.transform.Scale;

import java.util.HashMap;
import java.util.Scanner;
import java.util.Set;

// 如果一个字符串里面含有2个h，1个i，1个o，那么他就是hiho字符串
public class hiho字符串 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        HashMap<String, Integer> map = new HashMap<>();
        for (int i = 0; i < str.length(); i++) {
            map.put(String.valueOf(str.charAt(i)),0);
        }
        for (int i = 0; i < str.length(); i++) {

            map.put(String.valueOf(str.charAt(i)),map.get(String.valueOf(str.charAt(i)))+1);
        }
        Set<String> strings = map.keySet();
        for (String key:strings) {
            int sum = map.get(key);
            String q = "";
            for (int i = 0; i < sum; i++) {
                q = q+"*";
            }
            System.out.println(key+q+map.get(key));
        }


    }
}
